package com.example.gulimall.order.feign;

import com.example.common.vo.cart.CartItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
@FeignClient("gulimall-cart")
public interface CartFeignService {

    @GetMapping("/current/user/item/{userId}")
    List<CartItemVo> getCurrentUserItem (@PathVariable("userId") Long userId);

}
